package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import java.util.List;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by xiachao
 */

public class WithdrawRequest {
    WithdrawModel withdrawModel;

    private WithdrawRequest(Builder builder) {
        withdrawModel = builder.withdrawModel;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public static final class Builder {
        private WithdrawModel withdrawModel;

        private Builder() {
        }

        public Builder withdrawModel(WithdrawModel val) {
            withdrawModel = val;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().withdraw(withdrawModel);
        }
    }
}
